import { createRouter, createWebHistory } from 'vue-router';

const router = createRouter({
  routes: [
    {
      path: '/',
      name: 'Map',
      redirect: '/tif'
    },
    {
      path: '/border',             
      component: () => import('../components/leaflet/borderMap.vue'), 
      name: 'border'
    },
    {
      path: '/test',             
      component: () => import('../components/leaflet/TestMap.vue'), 
      name: 'TestMap'
    },
    {
      path: '/overlay',
      component: () => import('../components/ol/olOverlay.vue'),
      name: 'overlay'
    },
    {
      path: '/tif',
      component: () => import('../components/ol/showTif.vue'),
      name: 'tif'
    },
    {
      path: '/olBorder',
      component: () => import('../components/ol/olBorder.vue'),
      name: 'olBorder'
    }
  ],
  history: createWebHistory()
});

export default router;